package com.dh.project.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.dh.project.mapper.CustomerInfoMapper;
import com.dh.project.model.CustomerInfo;
import com.dh.project.model.PageModel;
import com.dh.project.service.CustomerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2017/3/29.
 */
@Service
public class CustomerInfoImpl extends SuperServiceImpl<CustomerInfoMapper,CustomerInfo> implements CustomerInfoService {

    @Autowired
    private CustomerInfoMapper customerInfoMapper;


    @Override
    public List<CustomerInfo> selectCustomerListByMap(Map map) {
        return customerInfoMapper.selectCustomerListByMap(map);
    }

    @Override
    public PageModel selectCustomerListByMapCount(Map map) {
        return customerInfoMapper.selectCustomerListByMapCount(map);
    }
}
